#pragma once
// const
#define ICON_FILE		0
#define ICON_DIR		1
#define ICON_COMPRESSED 2
class Listview
{
public:
	HINSTANCE hInst;
	HWND hList;
	
public:
	Listview(void);
	~Listview(void);
public:
	//init func
	HWND CreateListView(int styles, int x, int y, int width, int height, HWND hWndParent, int id);
	BOOL InitColumn();
	BOOL initImageList();
	
	//modify item
	void DeleteAllItem();
	void GetSelItem(LPTSTR text);
	BOOL AddItem( LPTSTR text, LPTSTR score,LPTSTR status, int iRow);
	int AddAllItem(LPTSTR lpPath);
	void SetItem(int nItem, int iSubItem, LPTSTR text);
	void MakeTextTime(LPFILETIME ft, LPTSTR temp);
	BOOL FindItem(LPTSTR lpPath,LPTSTR lpItemName,BOOL str);

	//I.O func
	void ReadFile(LPTSTR lpPath );
	
};